package cn.yunhe.mapper;

import cn.yunhe.pojo.Userp;
import cn.yunhe.pojo.UserpExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserpMapper {
    int countByExample(UserpExample example);

    int deleteByExample(UserpExample example);

    int deleteByPrimaryKey(String userId);

    int insert(Userp record);

    int insertSelective(Userp record);

    List<Userp> selectByExample(UserpExample example);

    Userp selectByPrimaryKey(String userId);

    int updateByExampleSelective(@Param("record") Userp record, @Param("example") UserpExample example);

    int updateByExample(@Param("record") Userp record, @Param("example") UserpExample example);

    int updateByPrimaryKeySelective(Userp record);

    int updateByPrimaryKey(Userp record);

    List<Userp> listDeptAndParent();

    Userp findUserById(String id);

    List<Userp> findRoleIDByUser(String roleId);
}